/**
 * @FileName ConcreteVisitor.java
 * @Package com.designMode.visitor
 * -------------------------------------
 * @function Please write description of function
 * @Date 2016-1-19 上午11:42:09
 * -------------------------------------
 * Copyright (c) 2016,顾博君 All Rights Reserved.
 */
package com.designMode.visitor;

/**
 * @author 顾博君
 * @ClassName ConcreteVisitor
 * @Date 2016-1-19 上午11:42:09
 * @Function 具体访问者
 */
public class ConcreteVisitor implements Visitor {
    /**
     * 访问元素1
     */
    @Override
    public void visitConcreteElement(ConcreteElement1 elem) {
        System.out.print("访问者开始访问元素1->");
        elem.doSomething();
    }

    /**
     * 访问元素2
     */
    @Override
    public void visitConcreteElement(ConcreteElement2 elem) {
        System.out.print("访问者开始访问元素2->");
        elem.doSomething();
    }
}
